package org.jaaksi.test.jpush;

import android.app.Application;
import cn.jpush.android.api.JPushInterface;
import org.jaaksi.test.jpush.util.SpFactory;

/**
 * Created by Fcy on 2016/1/23.
 */
public class MyApplication extends Application {
    private static MyApplication mInstance = null;

    public SpFactory mSpFactory;

    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;
        JPushInterface.init(this);
        JPushInterface.setDebugMode(true);
        mSpFactory = SpFactory.getInstance(this);
    }

    public static MyApplication getInstance() {
        return mInstance;
    }
}
